str = str2fieldname(str)
Convert string to fieldname that can be used in Matlab structure
candidate fieldname
Valid fieldname. A.(str) = value will not give an error